QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = ScreenShot

TEMPLATE = app
SOURCES += main.cpp \
    DrawTools.cpp \
    MediaTools.cpp \
    YImageDrawer.cpp \
    YToolWidget.cpp

#TEMPLATE = lib
#DESTDIR = $$_PRO_FILE_PWD_/../app
#DLLDESTDIR = $$_PRO_FILE_PWD_/../app
#SOURCES += YLibrary.cpp
#HEADERS += YLibrary.h

DEFINES += QT_DEPRECATED_WARNINGS

CONFIG += c++11

SOURCES += \
        ScreenShot.cpp \
        ScreenShotWidget.cpp \
        YCenterScrollArea.cpp \
        YMagnifier.cpp \
        StickyNote.cpp \
        Tools.cpp \
        Yuan.cpp

HEADERS += \
        DrawTools.h \
        MediaTools.h \
        ScreenShot.h \
        ScreenShotWidget.h \
        StickyNote.h \
        Tools.h \
        YCenterScrollArea.h \
        YImageDrawer.h \
        YMagnifier.h \
        YToolWidget.h \
        Yuan.h

FORMS += \
    MediaTools.ui \
    Tools.ui \
    DrawTools.ui \
    test.ui

RESOURCES += \
    Resource/resource.qrc

qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

unix|win32{
contains(DEFINES, has_YLIBRARY){
LIBS += -L$$PWD/../lib/ -lYSystemInfo
INCLUDEPATH += $$PWD/../YSystemInfo/include
DEPENDPATH += $$PWD/../YSystemInfo/include

LIBS += -L$$PWD/../lib/ -lYWidgets
INCLUDEPATH += $$PWD/../include
INCLUDEPATH += $$PWD/../YWidgets/include
DEPENDPATH += $$PWD/../YWidgets/include
}
}

include($$PWD/QyMultiMedia/QyMultiMedia.pri)
